From: Cosimo Cecchi Date: Tue, 6 Jun 2017 21:27:18 +0000 (-0700) Subject: st-entry: don't assume a cursor func has been set X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~307 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a256a3577952734cd3154c842cb627fe043e1155;p=gnome-shell.git st-entry: don't assume a cursor func has been set That won't be the case when called from tests. https://bugzilla.gnome.org/show_bug.cgi?id=783484 --- diff --git a/src/st/st-entry.c b/src/st/st-entry.c index 152f3eb8e..d81463d5e 100644 --- a/src/st/st-entry.c +++ b/src/st/st-entry.c @@ -739,7 +739,8 @@ static void st_entry_set_cursor (StEntry *entry, gboolean use_ibeam) { - cursor_func (entry, use_ibeam, cursor_func_data); + if (cursor_func) + cursor_func (entry, use_ibeam, cursor_func_data); ((StEntryPrivate *)ST_ENTRY_PRIV (entry))->has_ibeam = use_ibeam; }